package com.lemon.cloud.admin.feign;

import com.lemon.cloud.comm.model.ResultMsg;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestHeader;

import static com.lemon.cloud.comm.constants.OAuth2Constant.FROM;

@FeignClient(value = "admin-service", contextId = "paramFeign")
public interface ParamFeign {

    @GetMapping("/param/publicValue/{key}")
    ResultMsg<String> getByKey(@PathVariable("key") String key, @RequestHeader(FROM) String from);

}
